import { CardEditableParamsDefault, CardDataEditableParamsCommonDefault } from "@/views/card/js/data/cardDatas/card-datas-default.js";
import TooltipsData from "@/views/card/js/data/tooltipsData/tooltips-data.js";
const CARD_179 =  {
  // items_style: {
  //   ...CardEditableParamsDefault.SwitchNormal,
  //   label: '支持副标题(是|否)',
  //   bIsUpdateManual: true,
  //   boolReplace: {
  //     boolTrue: '1',
  //     boolFalse: '0',
  //   },
  // },
  bg_img: {
    ...CardEditableParamsDefault.ImageNormal,
    label: '背景图',
    res_type: 'String',  // Array : fileList, String : value
    placeholder: '尺寸严格按照设置的宽高，小于500kb，jpg,jpeg,png,gif格式',
    limit: 1,
    size: 500,
    accept: '.jpg, .jpeg, .png, .gif',
    tooltips: TooltipsData.image[3],
  },
  header: {
    ...CardEditableParamsDefault.Obj,
    label: '头部',
    param_params: {
      title: {
        ...CardEditableParamsDefault.InputNormal,
        label: '标题',
        placeholder: '请填入标题',
      },
      title_color: {
        ...CardEditableParamsDefault.ColorNormal,
        label: '标题颜色',
        value: '#AD5420',
        format: 'hex',
        isAlpha: false,
      },
      // title_color_dark: {},
      desc: {
        ...CardEditableParamsDefault.InputNormal,
        label: '右侧描述',
        placeholder: '请填入右侧描述',
      },
      desc_color: {
        ...CardEditableParamsDefault.ColorNormal,
        label: '右侧描述颜色',
        value: '#D49354',
        format: 'hex',
        isAlpha: false,
      },
      // desc_color_dark: {},
      arrow_img: {
        ...CardEditableParamsDefault.ImageNormal,
        label: '右侧箭头图片',
        res_type: 'String',  // Array : fileList, String : value
        placeholder: '小于100kb，png格式',
        limit: 1,
        size: 100,
        accept: '.png',
        tooltips: TooltipsData.image[2],
      },
      scheme: {
        ...CardEditableParamsDefault.InputNormal,
        label: '跳转链接',
        placeholder: '请填入跳转链接',
      },
    }
  },
  items: {
    ...CardEditableParamsDefault.Lists,
    label: 'item',
    param_params: {
      title: {
        ...CardEditableParamsDefault.InputNormal,
        label: '超话名称',
        placeholder: '请填入超话名称',
      },
      title_color: {
        ...CardEditableParamsDefault.ColorNormal,
        label: '超话名称颜色',
        value: '#FFFFFF',
        format: 'hex',
        isAlpha: false,
      },
      // title_color_dark: {},
      detail: {
        ...CardEditableParamsDefault.InputNormal,
        label: '右侧描述',
        placeholder: '请填入右侧描述',

        param_effect_parent: {
          effect_parent_keys: ['items_style'],
          effect_type: ['SHOW_HIDE'],
          effect_parent_val: '1',
          effect_clear: {  // 受 SHOW_HIDE 影响
            effect_clear_default_val: '',  // default
          },
        },
      },
      detail_color: {
        ...CardEditableParamsDefault.ColorNormal,
        label: '右侧描述颜色',
        value: '#454545',
        format: 'hex',
        isAlpha: false,

        param_effect_parent: {
          effect_parent_keys: ['items_style'],
          effect_type: ['SHOW_HIDE'],
          effect_parent_val: '1',
        },
      },
      detail_color_dark: {
        ...CardEditableParamsDefault.ColorNormal,
        label: '右侧描述颜色(暗黑模式)',
        value: '#454545',
        format: 'hex',
        isAlpha: false,
        disabled: true,

        param_effect_parent: {
          effect_parent_keys: ['items_style'],
          effect_type: ['SHOW_HIDE'],
          effect_parent_val: '1',
        },
      },
      image: {
        ...CardEditableParamsDefault.ImageNormal,
        label: '超话头像',
        res_type: 'String',  // Array : fileList, String : value
        placeholder: '请添加超话头像，500k以内，jpg/jpeg/png格式',
        limit: 1,
        size: 500,
        accept: '.jpg, .jpeg, .png',
        tooltips: '请添加超话头像，200x200，500k以内，jpg/jpeg/png格式',
      },
      badge_img: {
        ...CardEditableParamsDefault.ImageNormal,
        label: '角标图片',
        res_type: 'String',  // Array : fileList, String : value
        placeholder: '请选择角标图片，png格式',
        limit: 1,
        size: 100,
        accept: '.png',
        tooltips: '请选择图标，100x50，png格式，限制 100kb',
      },
      scheme: {
        ...CardEditableParamsDefault.InputNormal,
        label: '跳转链接',
        placeholder: '请填入跳转链接',
      },
    }
  },
  ...CardDataEditableParamsCommonDefault,
};
export default CARD_179;
